package commMqttRpc

type restfulLikeVO struct {
	Request RestfulLikeRequestVO
	Respond RestfulLikeRespondVO
}

type RestfulLikeRequestVO struct {
	Topic       string      `json:"topic"`
	Uuid        string      `json:"uuid"`
	Method      string      `json:"method"`
	Resource    string      `json:"resource"`
	Body        interface{} `json:"body"`
	ExecuteTime int64       `json:"executeTime"`
}

type RestfulLikeRespondVO struct {
	Topic    string      `json:"topic"`
	Uuid     string      `json:"uuid"`
	Method   string      `json:"method"`
	Resource string      `json:"resource"`
	Body     interface{} `json:"body"`
	Msg      string      `json:"msg"`
	Code     int         `json:"code"`
}

func (e *RestfulLikeRespondVO) BindRequestVO(vo *RestfulLikeRequestVO) {
	e.Topic = vo.Topic
	e.Uuid = vo.Uuid
	e.Method = vo.Method
	e.Resource = vo.Resource
	e.Body = vo.Body
}
